home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 029a / tsbat27.zip / PUSHDIRE.BAT < prev    next >
DOS Batch File  |  1990-01-14  |  659b  |  26 lines

  1. echo off
  2. echo Nonresident pushdir (Stores the current directory name)
  3. echo By Prof. Timo Salmi, ts@chyde.uwasa.fi, 14-Jan-90
  4. echo.
  5.  
  6. rem Saves the current drive and directory names in pushdriv and
  7. rem pushdire environment variables.
  8.  
  9. rem After changing directory, you can pop back to the original
  10. rem drive and directory by applying popdire.bat.
  11.  
  12. rem Requires the setpushd.exe program at path
  13.  
  14. setpushd
  15. if errorlevel==1 goto _err
  16. pushd$$$
  17. rem if you have MS-DOS 3.3 you may use the following command instead
  18. rem of pushd$$$: call pushd$$$
  19. goto _out
  20.  
  21. :_err
  22. echo File access error: Failed to push the drive and directory
  23.  
  24. :_out
  25. echo on
  26.